{% comment %}
Copyright 2012 Julie Smith.  All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.


This is the Django template for displaying error messages to the user.
{% endcomment %}
<!doctype html>
<html>
    <head>
        <title>{{ app_title }} - Error</title>
        <link rel="stylesheet" type="text/css" href="/static/tasks_backup.css" />
        <link rel="shortcut icon" type="image/x-icon" href="/static/favicon.ico" />
        <link rel="icon" type="image/x-icon" href="/static/favicon.ico" />
        <script type="text/javascript">

          var _gaq = _gaq || [];
          _gaq.push(['_setAccount', 'UA-30118203-1']);
          _gaq.push(['_trackPageview']);

          (function() {
            var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
            ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
            var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
          })();

        </script>
    </head>

<body>

    {% if is_authorized %}
        <div class="usertitle">
            Authorised user: {{ user_email }} <span class="logout-link">[ <a href="{{ logout_url }}">Log out</a> ]</span>
        </div>
    {% endif %}

  <h2>{{ app_title }} - Error</h2>
  
  <div class="break">
    Please report this error at <a href="http://{{ url_issues_page }}">{{ url_issues_page }}</a>
    <br/>
    Please include as much information as possible, especially the time of the error and details of error messages.
  </div>
 
  <div class="break">
    <h4>ERROR: {{ exc_type }} occurred at {{ err_datetimestamp }}</h4>
  </div>
  
  {% if err_desc %}
    <div class="break">
    {{ err_desc }}
    </div>
  {% endif %}

  {% if err_details %}
    <div class="break">
    {{ err_details }}
    </div>
  {% endif %}

  {% if err_msg %}
    <div class="break">
    {{ err_msg }}
    </div>
  {% endif %}


  <div class="break">
  </div>
    
  <div class="break">
    Version {{ app_version }} ({{ app_upload_timestamp }})
    <br/>
    
  </div>
    
	<div class="project-footer">
		<div class="break">
			Questions or comments? Go to <a href="http://{{ url_discussion_group }}">{{ url_discussion_group }}</a>
			or email <a href="mailto:{{ email_discussion_group }}">{{ email_discussion_group }}</a>
		</div>
		<div class="break">
			Please report bugs or suggest improvements at <a href="http:/{{ url_issues_page }}">{{ url_issues_page }}</a>
		</div>
		<div class="break">
			Source code for this project is at <a href="http://{{ url_source_code }}">{{ url_source_code }}</a>
		</div>
	</div>


</body>
</html>
